Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin
/
app
/
V2
/
Dtos
/
Filename :
BaseDTO.php
back
Copy
<?php namespace App\V2\Dtos; use App\Models\Group; use App\Models\Store; use App\Models\User; class BaseDTO { public User $current_user; public Group $current_group; public Store $current_store; public $limit = 10; public $page_no; public $order_by_column; public $order; public $only_count=false; public function getCurrentUserId(){ return $this->current_user->user_id; } public function getCurrentStoreId(){ return $this->current_store->store_id; } public function getCurrentGroupId(){ return $this->current_group->group_id; } public function getCurrentUser(){ return $this->current_user; } public function getLimit(){ return $this->limit; } public function getPageNo(){ return $this->page_no; } public function getOrderByColumn(){ return $this->order_by_column; } public function getOrder(){ return $this->order; } public function getOnlyCount(){ return $this->only_count; } public function getCurrentGroup(){ return $this->current_group; } } ?>